import request from '@/util/request'

export function getGoods(page) {
  var params = {page}
  return request({
    method: 'get',
    url: '/api/goods/',
    params
  })
}
// export function getsearch(searchItem) {
//   var params = {searchItem}
//   console.log(searchItem)
//   return request({
//     method: 'get',
//     url: '/api/category/',
//     params
//   })
// }
export function getbrand(search) {
  var params = {search}
  console.log(search)
  return request({
    method: 'get',
    url: '/api/brand/',
    params
  })
}
